
using System.Security.AccessControl;

namespace ZR.Model.ProdManage.Dto
{
    /// <summary>
    /// 二级包装明细查询对象
    /// </summary>
    public class ProdTwoPackDetailQueryDto : PagerInfo
    {
        /// <summary>
        /// 二级装箱id 
        /// </summary>
        public string TwoPackId { get; set; }
        /// <summary>
        /// 装箱时间 
        /// </summary>
        public DateTime? BeginPackTime { get; set; }
        public DateTime? EndPackTime { get; set; }
        /// <summary>
        /// 明细状态（0临时，1正常，9取消） 
        /// </summary>
        public string ItemStatus { get; set; }
        /// <summary>
        /// VIN码 
        /// </summary>
        public string Vin { get; set; }
        /// <summary>
        /// 装箱类型(0一级箱,1零件) 
        /// </summary>
        public string PackType { get; set; }
        /// <summary>
        /// 物料号 
        /// </summary>
        public string PartCode { get; set; }
        /// <summary>
        /// 一级包装编号 
        /// </summary>
        public string OnePackNo { get; set; }
    }

    /// <summary>
    /// 二级包装明细输入输出对象
    /// </summary>
    public class ProdTwoPackDetailDto
    {
        /// <summary>
        /// 明细Id 
        /// </summary>
        [Required(ErrorMessage = "明细Id不能为空")]
        public string DetailId { get; set; }

        /// <summary>
        /// 二级装箱id 
        /// </summary>
        [Required(ErrorMessage = "二级装箱id不能为空")]
        public string TwoPackId { get; set; }

        /// <summary>
        /// 二级装箱-箱号
        /// </summary>
        public string TwoPackNo { get; set; }

        /// <summary>
        /// 装箱时间 
        /// </summary>
        public DateTime? PackTime { get; set; }

        /// <summary>
        /// 装箱人 
        /// </summary>
        public long? PackUserId { get; set; }

        /// <summary>
        /// 明细状态（0临时，1正常，9取消） 
        /// </summary>
        [Required(ErrorMessage = "明细状态（0临时，1正常，9取消）不能为空")]
        public string ItemStatus { get; set; }

        /// <summary>
        /// VIN码 
        /// </summary>
        public string Vin { get; set; }

        /// <summary>
        /// 装箱类型(0一级箱,1零件) 
        /// </summary>
        [Required(ErrorMessage = "装箱类型(0一级箱,1零件)不能为空")]
        public string PackType { get; set; }

        /// <summary>
        /// 物料号 
        /// </summary>
        [Required(ErrorMessage = "物料号不能为空")]
        public string PartCode { get; set; }

        /// <summary>
        /// 供应商 
        /// </summary>
        public string SupplierCode { get; set; }

        /// <summary>
        /// 包装数量 
        /// </summary>
        [Required(ErrorMessage = "包装数量不能为空")]
        public decimal? PackNum { get; set; }

        /// <summary>
        /// 一级包装编号 
        /// </summary>
        public string OnePackNo { get; set; }

        /// <summary>
        /// 关联组 
        /// </summary>
        public int? RelaGroupId { get; set; }

        /// <summary>
        /// 明细描述 
        /// </summary>
        public string PartDesc { get; set; }
    }


    /// <summary>
    /// 推送二级订单明细
    /// </summary>
    public class WmsTwoPackDetailDto
    {
        /// <summary>
        /// 装箱时间
        /// </summary>
        public DateTime? packTime { get; set; }
        /// <summary>
        /// 装箱人
        /// </summary>
        public long? packUserId { get; set; }
        /// <summary>
        /// 明细状态（0临时，1正常，9取消）
        /// </summary>
        public string itemStatus { get; set; }
        /// <summary>
        /// vin码
        /// </summary>
        public string vin { get; set; }
        /// <summary>
        /// 装箱类型(0一级箱,1零件)
        /// </summary>
        public string packType { get; set; }
        /// <summary>
        /// 物料号
        /// </summary>
        public string partCode { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string supplierCode { get; set; }
        /// <summary>
        /// 包装数量
        /// </summary>
        public decimal? packNum { get; set; }
        /// <summary>
        /// 一级包装编号
        /// </summary>
        public string onePackNo { get; set; }
        /// <summary>
        /// 关联组
        /// </summary>
        public int? relaGroupId { get; set; }
        /// <summary>
        /// 明细描述
        /// </summary>
        public string partDesc { get; set; }

    }
}